home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1753 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  759 b 

  1. Path: unix.sri.com!usenet
  2. From: mklenk@updike.sri.com (Mark Klenk)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Pound defines
  5. Date: 16 Jan 1996 18:57:42 GMT
  6. Organization: SRI International
  7. Message-ID: <4dgsf6$qin@unix.sri.com>
  8. References: <4dgquf$fuq@bmerhc5e.bnr.ca>
  9. Reply-To: mklenk@updike.sri.com
  10. NNTP-Posting-Host: 204.75.161.40
  11.  
  12. Jean Giblin wrote:
  13. >
  14. >    I was wondering if anybody out there knows about a C command that prints the
  15. >the name of the define when given the number. Example:
  16. >
  17. > #define MAX 20
  18. >
  19. >when given 20 it will return max.
  20.  
  21.     There is no such "command."  #define's happen at pre-processor
  22.     time - once the replacement has been made, the compiler can't
  23.     tell the number 20 from the replaced MAX.
  24.  
  25. ---
  26.  
  27. mklenk@coronacorp.com       (Mark Klenk)
  28.  
  29.  
  30.  
  31.